# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-crossplane
_pkgname=crossplane
pkgver=0.5.8
pkgrel=5
pkgdesc='Reliable and fast NGINX configuration file parser..'
arch=('any')
url='https://pypi.org/project/crossplane/#files'
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('40354ff7aa3a75093527550971a12e128b9f6e18589d1a0f568c6b276589a3440f4ee3a7f9efc80b301971af87321d2b2a363ced6e10353b9b8ae5add7b7fb60')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

